#ifndef _MEMORY_H_
#define _MEMORY_H_

//Max pointers to hold
#define NUM_OF_POINTERS 10

//Globals
static void* pointers[NUM_OF_POINTERS] = { 0 };		// array of pointers that were allocated
static int pointersCount = 0;						// size of array

/*
 * function allocateMemory
 * allocate memory of sizeInBytes in the kerenl. On success adds the pointer to 
 * an array of pointers.
 * params: sizeInBytes - requested size in bytes to allocate
 * returns: NULL on failure, otherwise success
 */ 
static void* allocateMemory(int sizeInBytes);
/*
 * function releaseAllMemory
 * releases all memory allocated by allocateMemory
 */ 
static void releaseAllMemory(void);

#endif
